Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nethsm: Improve base64 handling and add key import from PEM #539

Merged
merged 2 commits into from
May 13, 2024

Conversation

robin-nitrokey
Copy link
Member

This PR updates the nethsm dependency to v1.1.0 and implements two improvements that are supported by the new version:

This patch updates the nethsm dependency to v1.1.0 and uses the new
ignore_whitespace option in Base64.from_encoded to ignore whitespace in
our base64 input.  The main motivation is that the base64 tool per
default inserts linebreaks into long data, so previously piping the
base64 output into pynitrokey could lead to errors.

Fixes: #538
The nethsm SDK v1.1.0 added support for importing keys from PEM files.
This patch adds an import-key subcommand to pynitrokey.

Fixes: #537
@robin-nitrokey robin-nitrokey merged commit 3d24951 into master May 13, 2024
8 checks passed
@robin-nitrokey robin-nitrokey deleted the nethsm-v1.1.0 branch May 13, 2024 09:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants